Page({
  data: {
    notice: null
  },
  onLoad(options) {
    const id = options.id;
    const app = getApp();
    wx.request({
      url: `${app.globalData.baseUrl}/api/announcements/${id}`,
      method: 'GET',
      success: res => {
        this.setData({ notice: res.data });
      }
    });
  }
}); 